using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region TvStationPeople

	/// <summary>
	/// TvStationPeople object for NHibernate mapped table 'tvStationPeople'.
	/// </summary>
	public class TvStationPeople
	{
		#region Member Variables
		
		protected int _id;
		protected string _name;
		protected string _headPic;
		protected string _description;
		protected int _tvStationId;
		protected string _tvStationName;

		#endregion

		#region Constructors

		public TvStationPeople() { }

		public TvStationPeople( string name, string headPic, string description, int tvStationId, string tvStationName )
		{
			this._name = name;
			this._headPic = headPic;
			this._description = description;
			this._tvStationId = tvStationId;
			this._tvStationName = tvStationName;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Name
		{
			get { return _name; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Name", value, value.ToString());
				_name = value;
			}
		}

		public  virtual string HeadPic
		{
			get { return _headPic; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for HeadPic", value, value.ToString());
				_headPic = value;
			}
		}

		public  virtual string Description
		{
			get { return _description; }
			set
			{				
				_description = value;
			}
		}

		public  virtual int TvStationId
		{
			get { return _tvStationId; }
			set { _tvStationId = value; }
		}

		public  virtual string TvStationName
		{
			get { return _tvStationName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for TvStationName", value, value.ToString());
				_tvStationName = value;
			}
		}

		

		#endregion
	}
	#endregion
}